package com.lhh.myspringboot.design.mode.builder;

import com.alibaba.fastjson.JSON;

public class TestBuilder {

    public static void main(String[] args) {
        Computer computer = Computer.builder()
                .keyboard("2345")
                .cpu("udikhfi")
                .ram("999")
                .display("56")
                .build();

        System.out.println(JSON.toJSON(computer));
    }
}
